The Hex command returns the hexadecimal equivalent (as a string) of the given numeric variable.
Syntax
HEX ( numeric_variable )